package cn.itcast.domain.cargo;

import cn.itcast.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Shipping extends BaseEntity implements Serializable {
    private String id; //集装箱id
    private String orderType; //运输方式 SEA海运 | AIR空运
    private String shipper; //货主
    private String consignee; //提单抬头
    private String notifyParty; //正本通知人
    private String lcNo;  //信用证
    private String portOfLoading;  //装运港
    private String portOfDischarge;  //卸货港
    private String specialCondition;  //运输要求
    private Integer state;  //状态
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date loadingDate;  //装船日期

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.id
     *
     * @return the value of co_shipping.id
     *
     * @mbg.generated
     */
    public String getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.id
     *
     * @param id the value for co_shipping.id
     *
     * @mbg.generated
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.order_type
     *
     * @return the value of co_shipping.order_type
     *
     * @mbg.generated
     */
    public String getOrderType() {
        return orderType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.order_type
     *
     * @param orderType the value for co_shipping.order_type
     *
     * @mbg.generated
     */
    public void setOrderType(String orderType) {
        this.orderType = orderType == null ? null : orderType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.shipper
     *
     * @return the value of co_shipping.shipper
     *
     * @mbg.generated
     */
    public String getShipper() {
        return shipper;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.shipper
     *
     * @param shipper the value for co_shipping.shipper
     *
     * @mbg.generated
     */
    public void setShipper(String shipper) {
        this.shipper = shipper == null ? null : shipper.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.consignee
     *
     * @return the value of co_shipping.consignee
     *
     * @mbg.generated
     */
    public String getConsignee() {
        return consignee;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.consignee
     *
     * @param consignee the value for co_shipping.consignee
     *
     * @mbg.generated
     */
    public void setConsignee(String consignee) {
        this.consignee = consignee == null ? null : consignee.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.notify_party
     *
     * @return the value of co_shipping.notify_party
     *
     * @mbg.generated
     */
    public String getNotifyParty() {
        return notifyParty;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.notify_party
     *
     * @param notifyParty the value for co_shipping.notify_party
     *
     * @mbg.generated
     */
    public void setNotifyParty(String notifyParty) {
        this.notifyParty = notifyParty == null ? null : notifyParty.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.lc_no
     *
     * @return the value of co_shipping.lc_no
     *
     * @mbg.generated
     */
    public String getLcNo() {
        return lcNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.lc_no
     *
     * @param lcNo the value for co_shipping.lc_no
     *
     * @mbg.generated
     */
    public void setLcNo(String lcNo) {
        this.lcNo = lcNo == null ? null : lcNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.port_of_loading
     *
     * @return the value of co_shipping.port_of_loading
     *
     * @mbg.generated
     */
    public String getPortOfLoading() {
        return portOfLoading;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.port_of_loading
     *
     * @param portOfLoading the value for co_shipping.port_of_loading
     *
     * @mbg.generated
     */
    public void setPortOfLoading(String portOfLoading) {
        this.portOfLoading = portOfLoading == null ? null : portOfLoading.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.port_of_discharge
     *
     * @return the value of co_shipping.port_of_discharge
     *
     * @mbg.generated
     */
    public String getPortOfDischarge() {
        return portOfDischarge;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.port_of_discharge
     *
     * @param portOfDischarge the value for co_shipping.port_of_discharge
     *
     * @mbg.generated
     */
    public void setPortOfDischarge(String portOfDischarge) {
        this.portOfDischarge = portOfDischarge == null ? null : portOfDischarge.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.special_condition
     *
     * @return the value of co_shipping.special_condition
     *
     * @mbg.generated
     */
    public String getSpecialCondition() {
        return specialCondition;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.special_condition
     *
     * @param specialCondition the value for co_shipping.special_condition
     *
     * @mbg.generated
     */
    public void setSpecialCondition(String specialCondition) {
        this.specialCondition = specialCondition == null ? null : specialCondition.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.state
     *
     * @return the value of co_shipping.state
     *
     * @mbg.generated
     */
    public Integer getState() {
        return state;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.state
     *
     * @param state the value for co_shipping.state
     *
     * @mbg.generated
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_shipping.loading_date
     *
     * @return the value of co_shipping.loading_date
     *
     * @mbg.generated
     */
    public Date getLoadingDate() {
        return loadingDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_shipping.loading_date
     *
     * @param loadingDate the value for co_shipping.loading_date
     *
     * @mbg.generated
     */
    public void setLoadingDate(Date loadingDate) {
        this.loadingDate = loadingDate;
    }
}